#!/usr/bin/env python
import os
import time

targetFilePath = input('Enter path of the target file:')
tmpFileName = "__" + time.strftime('%H%M%S') + "__"

#print ( targetFilePath, tmpFileName )

targetFile = open(targetFilePath, 'r')
tmpFile    = open(tmpFileName, 'w')

while True:
	line = targetFile.readline()
	if line == '\n':
		continue
	if len(line) == 0:
		break
	tmpFile.write(line)

targetFile.close()
tmpFile.close()
command = 'mv ' + tmpFileName + ' ' + targetFilePath
command1 = 'rm -f ' + tmpFileName

if os.system(command) == 0 and \
   os.system(command1) == 0:
	print('Sucess')
else:
	print('Fail')

